function [Objv,R,SA_pos] = SA_fobj(PTime,init)

[group_condition,groupid,itemRP,R,new_PTime,Bin,Item] = BL_2DBP(init,PTime);
                                         % population members 
Max_iterations = 100;                    % maximum number of iteration
lb = 0;
ub = 1;
dim = groupid*7;
fobj = @Caltime;
[SA_score,SA_pos,SA_Convergence_curve]=SA(Max_iterations,lb,ub,dim,new_PTime,fobj); % 调用SA算法
SA_score = -SA_score;
Objv = SA_score / (R*1000);
Objv = -Objv;





























end
